package com.zzgc.modules.param;

import lombok.Data;
import java.util.List;

/**
 * @Author:
 * @CreateTime: 2022-11-23  10:31
 * @Description:
 * @Version: 1.0
 */
@Data
public class PageableParam {
    private int page = 1;
    private int size = 10;
    private List<Sort> sorts;
    private int offset;
    private int pageSize;
    private long total;
    private Object data;

    public int getOffset() {
        this.offset = (page - 1) * this.size;
        return offset;
    }

    public int getPageSize() {
        return this.size;
    }
}
